.shortcut-input-container {
  width: 100%;
}

.shortcut-input {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 14px;
  outline: none;
}

.shortcut-input:hover:not(.disabled) {
  border-color: #adb5bd;
}

.shortcut-input:focus:not(.disabled) {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.shortcut-input.recording {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.shortcut-input.validating {
  border-color: #ffc107;
}

.shortcut-input.valid {
  border-color: #28a745;
}

.shortcut-input.invalid {
  border-color: #dc3545;
}

.shortcut-input.disabled {
  background: #f8f9fa;
  border-color: #e9ecef;
  cursor: not-allowed;
  opacity: 0.6;
}

.shortcut-display {
  flex: 1;
  color: #495057;
  font-weight: 500;
}

.shortcut-input.recording .shortcut-display {
  color: #667eea;
}

.shortcut-input.disabled .shortcut-display {
  color: #6c757d;
}

.recording-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  color: #667eea;
  font-size: 12px;
  font-weight: 500;
}

.recording-dot {
  width: 8px;
  height: 8px;
  background: #667eea;
  border-radius: 50%;
  animation: recording-pulse 1.5s infinite;
}

@keyframes recording-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.recording-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clear-btn {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  font-size: 12px;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.clear-btn:hover:not(:disabled) {
  background: #f8f9fa;
  color: #495057;
}

.clear-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.validation-message {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.validation-message.success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.validation-message.error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.validation-icon {
  font-size: 14px;
}

.validation-text {
  flex: 1;
}

.shortcut-help {
  margin-top: 8px;
  text-align: center;
}

.shortcut-help small {
  color: #6c757d;
  font-size: 12px;
  line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .shortcut-input {
    min-height: 48px;
    padding: 14px 16px;
    font-size: 16px; /* 防止iOS缩放 */
  }
  
  .recording-indicator {
    flex-direction: column;
    gap: 4px;
    margin-left: 8px;
  }
  
  .validation-message {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}